﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace ServiceLayer
{
    [DataContract]
    public class DriverDTO
    {
        [DataMember]
        public string Name { set; get; }

        [DataMember]
        public string Surname { set; get; }

        [DataMember]
        public int Id { set; get; }

        [DataMember]
        public string PhoneNumber { set; get; }

        [DataMember]
        public string Email { set; get; }

        internal DriverDTO(BusinessLayer.Driver driver)
        {
            Name = driver.Name;
            Surname = driver.Surname;
            Id = driver.Id;
            PhoneNumber = driver.PhoneNumber;
            Email = driver.Email;
        }
    }
}